import Vue from 'vue'

//加载element组件依赖；
import { Carousel, CarouselItem} from  'element-ui'
Vue.use(Carousel);
Vue.use(CarouselItem);

import Router from 'vue-router'
import Main from '@/components/main'
import Clips from '@/components/clips/clips'
import Circle from '@/components/circle'
import Mine from '@/components/mine'
import Other from '@/components/other'

//欢迎页路由；
import Welcome from '@/components/welcome'

//登录注册路由
import Login from '@/pages/main/login.vue'
import Register from '@/pages/main/register'
import Login_forget from '@/pages/main/login_forget.vue'
import Login_set_pwd from '@/pages/main/login_set_pwd.vue'

//下面是几个主页文件的路由
import Main_normal1 from '@/pages/main/main_normal1.vue'
import Main_normal2 from '@/pages/main/main_normal2.vue'
import Main_king_fans from '@/pages/main/main_king_fans.vue'
import Main_lazy from '@/pages/main/main_lazy.vue'

// 圈子其他用户路由
import Circle_details_user from '@/pages/circle/circle_details_user'
import Circle_hair from '@/pages/circle/circle_hair'

//"我的" 其他路由
import Mine_index from "@/pages/mine/mine_index"
import Mine_set from "@/pages/mine/mine_set"
import Mine_set_phone from "@/pages/mine/mine_set_phone"
import Mine_set_password from "@/pages/mine/mine_set_password"
import Mine_information from "@/pages/mine/mine_information"
import Mine_information_name from "@/pages/mine/mine_information_name"
import Mine_information_sign from "@/pages/mine/mine_information_sign"
import Mine_information_region from "@/pages/mine/mine_information_region"
import Mine_index_about from "@/pages/mine/mine_index_about"
import Mine_star_attestation from "@/pages/mine/mine_star_attestation"
import Mine_index_feedback from "@/pages/mine/mine_index_feedback"


//评论路由；
import Clips_comment from '@/pages/clips/clips_comment'

import Clips_comment_gods from '@/pages/clips/clips_comment/clips_comment_gods'

import Clips_comment_intro from '@/pages/clips/clips_comment/clips_comment_intro'

import Clips_comment_selected from '@/pages/clips/clips_comment/clips_comment_selected'

//加载全部回复路由；
import Comment_all_reply from '@/pages/clips/clips_comment/comment_all_reply'

//加载大咖片花路由；
import Master_clips from '@/pages/clips/clips_comment/master_clips'


Vue.use(Router)

export default new Router({
  routes: [
     {
        path:'/',

        name:'Welcome',

        component:Welcome

    },
    {
      path: '/main',
      name: 'main',
      component: Main
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/register',
      name: 'register',
      component: Register
    },
    {
      path: '/login_forget',
      name: 'login_forget',
      component: Login_forget
    }, 
    {
      path: '/login_set_pwd',
      name: 'login_set_pwd',
      component: Login_set_pwd
    },  
    {
      path: '/main_normal1',
      name: 'main_normal1',
      component: Main_normal1
    },  
    {
      path: '/main_normal2',
      name: 'main_normal2',
      component: Main_normal2
    },  
    {
      path: '/main_king_fans',
      name: 'main_king_fans',
      component: Main_king_fans
    },  
    {
      path: '/main_lazy',
      name: 'main_lazy',
      component: Main_lazy
    }, 
   
    {
    	path: '/clips',
      name: 'clips',
      component: Clips
    },
    {
        path: '/clips/clips_comment/',
        name: 'clips_comment',
        component: Clips_comment ,
        redirect:"/clips/clips_comment/clips_comment_gods",
          children:[
            {
              path:'clips_comment_gods',
              name:'clips_comment_gods',
              component:Clips_comment_gods
            },
            {
              path:'clips_comment_intro',
              name:'clips_comment_intro',
              component:Clips_comment_intro
            },
            {
              path:'clips_comment_selected',
              name:'clips_comment_selected',
              component:Clips_comment_selected
            }
          ]
    },
    {
      path:'/clips/clips_comment/clips_comment_gods/comment_all_reply',
      name:'comment_all_reply',
      component:Comment_all_reply
    },
     //加载片花路由；
    {
      path:'/clips/clips_comment/clips_comment_intro/master_clips',
      name:'master_clips',
      component:Master_clips

    },
    {
      path: '/circle',
      name: 'circle',
      component: Circle,
    },
    {
    	path:'/circle/user',
    	name: 'circle_user',
      component:Circle_details_user
    },
    {
    	path:'/circle/hair',
    	name: 'circle_hair',
      component:Circle_hair
    },
    {
      path: '/mine',
      name: 'mine',
      component: Mine,
      children:[
      		{
      			path: '/',
			      name: 'Mine_index',
			      component: Mine_index,
      		},
      		{
      			path: 'set',
			      name: 'Mine_set',
			      component: Mine_set,
      		},
      		{
      			path:"set/phone",
      			name:"Mine_set_phone",
      			component:Mine_set_phone
      		},
      		{
      			path:'set/password',
      			name:'Mine_set_password',
      			component:Mine_set_password
      		},
      		{
      			path:'information',
      			name:"Mine_information",
      			component:Mine_information,
      		},
      		{
	  				path:'information/name',
	  				name:"Mine_information_name",
	  				component:Mine_information_name
      		},
      		{
      			path:'information/sign',
      			name:'Mine_information_sign',
      			component:Mine_information_sign
      		},
      		{
      			path:'information/region',
      			name:'Mine_information_region',
      			component:Mine_information_region
      		},
      		{
      			path:'about',
      			name:'Mine_index_about',
      			component:Mine_index_about
      		},
      		{
      			path:'star',
      			name:"Mine_star_attestation",
      			component:Mine_star_attestation
      		},
      		{
      			path:'feedback',
      			name:'Mine_index_feedback',
      			component:Mine_index_feedback
      		}
      		
      ]
    },
     {
      path: '/other',
      name: 'other',
      component: Other
    }
  ]
})
